Skip to content

Replace deprecated URL constructor globally#1678

Open
gdesrosiers1805 wants to merge 1 commit into
apache:mainfrom
gdesrosiers1805:bugfix/daffodil-3083
Open

Replace deprecated URL constructor globally#1678
gdesrosiers1805 wants to merge 1 commit into
apache:mainfrom
gdesrosiers1805:bugfix/daffodil-3083

Conversation

@gdesrosiers1805

Copy link
Copy Markdown
Contributor

java.net.URL(String) has been deprecated since JDK 20, and causes the build to fail in some instances. Use the new URI(schemaFile).toURL instead, which is non-deprecated and available on all supported JDK versions.

DAFFODIL-3083

@olabusayoT olabusayoT left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@stevedlawrence stevedlawrence left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 with a couple other instances fixed

java.net.URL(String) has been deprecated since JDK 20, and causes the
build to fail in some instances. Use the new URI(schemaFile).toURL instead,
which is non-deprecated and available on all supported JDK versions.

DAFFODIL-3083
@gdesrosiers1805 gdesrosiers1805 changed the title Replace deprecated URL constructor in XercesValidator Replace deprecated URL constructor globally Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants